<!-- $Id: agency_info.htm 14216 2008-03-10 02:27:21Z testyang $ -->
{include file="pageheader.htm"}
{insert_scripts files="validator.js,../js/transport.js"}
<script type="text/javascript" src="../js/calendar.php"></script>
<link href="../js/calendar/calendar.css" rel="stylesheet" type="text/css" />
<div class="main-div">
<form method="post" action="sign.php" name="theForm" enctype="multipart/form-data" onsubmit="return validate()">
<table cellspacing="1" cellpadding="3" width="100%">

<tr>
    <td class="label">规则</td>
    <td><textarea  name="reg_rule" cols="60" rows="4"  >{$agency.reg_rule}</textarea></td>
  </tr>
 <tr>
    <td class="label">活动日期</td>
    <td> <input type="text" name="si_stime" maxlength="60" size="20" readonly="readonly" id="si_stime" />
      <input name="start_time_btn" type="button" id="start_time_btn" onclick="return showCalendar('si_stime', '%Y-%m-%d ', '24', false, 'start_time_btn');" value="选择" class="button"/>
      ~      
      <input type="text" name="si_etime" maxlength="60" size="20" readonly="readonly" id="si_etime" />
      <input name="end_time_btn" type="button" id="end_time_btn" onclick="return showCalendar('si_etime', '%Y-%m-%d ', '24', false, 'end_time_btn');" value="选择" class="button"/>  </td>
  </tr>
   <tr>
    <td class="label">赠送红包</td>
    <td> <select name="boundsid" id="boundsid">
          {foreach from=$bound item=bound}
      <option value="{$bound.id}">{$bound.bonus_name}</option>
          {/foreach }
    </select> </td>
  </tr>
   <tr>
    <td class="label">连续签到天数</td>
    <td> <input type="text" name="days" maxlength="60" value="{$agency.Column_5}" /> </td>
  </tr>
</table>


<table align="center">
  <tr>
    <td colspan="2" align="center">
      <input type="submit" class="button" value="{$lang.button_submit}" />
      <input type="reset" class="button" value="{$lang.button_reset}" />
      <input type="hidden" name="act" value="{$form_action}" />
      <input type="hidden" name="rid" value="{$agency.rid}" />
    </td>
  </tr>
</table>
</form>
</div>
{insert_scripts files="../js/utils.js,validator.js"}
{literal}
<script language="JavaScript">
<!--
region.isAdmin = true;
document.forms['theForm'].elements['agency_name'].focus();
onload = function()
{
    var selCountry = document.forms['theForm'].elements['country'];
    if (selCountry.selectedIndex >= 0)
    {
        region.loadProvinces(selCountry.options[selCountry.selectedIndex].value);
    }
    // 开始检查订单
    startCheckOrder();
}
/**
 * 检查表单输入的数据
 */
function validate()
{
    validator = new Validator("theForm");
    validator.required("reg_rule",  no_agencyname);
    return validator.passed();
}

//-->
</script>
{/literal}
{include file="pagefooter.htm"}